package com.decoration.basic.service.impl;

import java.util.Date;
import java.util.List;

import javax.annotation.Resource;

import com.decoration.basic.util.DateFormatUtils;
import org.springframework.stereotype.Service;

import com.decoration.basic.entity.DecArticleInf;
import com.decoration.basic.mapper.DecArticleInfMapper;
import com.decoration.basic.findCondition.DecArticleFindCondition;
import com.decoration.basic.service.DecArticleInfService;

@Service
public class DecArticleInfServiceImpl implements DecArticleInfService {

	@Resource
	private DecArticleInfMapper decArticleInfMapper;

	@Override
	public int deleteByPrimaryKey(Integer articleId) {
		return decArticleInfMapper.deleteByPrimaryKey(articleId);
	}

	@Override
	public int insert(DecArticleInf record) {
		return decArticleInfMapper.insert(record);
	}

	@Override
	public DecArticleInf selectByPrimaryKey(Integer articleId) {
		return decArticleInfMapper.selectByPrimaryKey(articleId);
	}

	@Override
	public int updateByPrimaryKeySelective(DecArticleInf record) {
		return decArticleInfMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public List<DecArticleInf> getArticleList(DecArticleFindCondition findCondition) {
		return decArticleInfMapper.getArticleList(findCondition);
	}

	@Override
	public int getArticleListSize() {
		return decArticleInfMapper.getArticleListSize();
	}

}
